﻿@model RPSImporter.Models.Settings.PersonFileSettings

    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Fichier Personnel</legend>

        @Html.HiddenFor(model => model.ID)

        <div class="editor-label">
            @Html.LabelFor(model => model.FirstName)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.FirstName)
            @Html.ValidationMessageFor(model => model.FirstName)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.LastName)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.LastName)
            @Html.ValidationMessageFor(model => model.LastName)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Gender)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Gender)
            @Html.ValidationMessageFor(model => model.Gender)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.MaidenName)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.MaidenName)
            @Html.ValidationMessageFor(model => model.MaidenName)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.BadgeNumber)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.BadgeNumber)
            @Html.ValidationMessageFor(model => model.BadgeNumber)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Age)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Age)
            @Html.ValidationMessageFor(model => model.Age)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.BirthDate)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.BirthDate)
            @Html.ValidationMessageFor(model => model.BirthDate)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.CivilState)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.CivilState)
            @Html.ValidationMessageFor(model => model.CivilState)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Language)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Language)
            @Html.ValidationMessageFor(model => model.Language)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Nationality)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Nationality)
            @Html.ValidationMessageFor(model => model.Nationality)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.CategorieSante)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.CategorieSante)
            @Html.ValidationMessageFor(model => model.CategorieSante)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.SocialSecurityNumber)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.SocialSecurityNumber)
            @Html.ValidationMessageFor(model => model.SocialSecurityNumber)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.ControlKey)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ControlKey)
            @Html.ValidationMessageFor(model => model.ControlKey)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Company)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Company)
            @Html.ValidationMessageFor(model => model.Company)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Enterprise)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Enterprise)
            @Html.ValidationMessageFor(model => model.Enterprise)
        </div>

        @if (RPSImporter.Services.DatabaseSvc.Instance.Settings.GeneralSettings.First().IsMultiColumnPersonImport)
        { 
           <div class="editor-label">
               @Html.LabelFor(model => model.Department)
           </div>
           <div class="editor-field">
               @Html.EditorFor(model => model.Department)
               @Html.ValidationMessageFor(model => model.Department)
           </div>

           <div class="editor-label">
               @Html.LabelFor(model => model.Sector)
           </div>
           <div class="editor-field">
               @Html.EditorFor(model => model.Sector)
               @Html.ValidationMessageFor(model => model.Sector)
           </div>
        }
        else
        { 
           <div class="editor-label">
               @Html.LabelFor(model => model.Hierarchy)
           </div>
           <div class="editor-field">
               @Html.EditorFor(model => model.Hierarchy)
               @Html.ValidationMessageFor(model => model.Hierarchy)
           </div>
        }

        <div class="editor-label">
            @Html.LabelFor(model => model.Country)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Country)
            @Html.ValidationMessageFor(model => model.Country)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.TypePersonel)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.TypePersonel)
            @Html.ValidationMessageFor(model => model.TypePersonel)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.WorkingHoursName)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.WorkingHoursName)
            @Html.ValidationMessageFor(model => model.WorkingHoursName)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.WorkingHoursCode)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.WorkingHoursCode)
            @Html.ValidationMessageFor(model => model.WorkingHoursCode)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Occupation)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Occupation)
            @Html.ValidationMessageFor(model => model.Occupation)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.StartingDate)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.StartingDate)
            @Html.ValidationMessageFor(model => model.StartingDate)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Proffesion)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Proffesion)
            @Html.ValidationMessageFor(model => model.Proffesion)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Qualification)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Qualification)
            @Html.ValidationMessageFor(model => model.Qualification)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.HirementDate)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.HirementDate)
            @Html.ValidationMessageFor(model => model.HirementDate)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Address1)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Address1)
            @Html.ValidationMessageFor(model => model.Address1)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.City)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.City)
            @Html.ValidationMessageFor(model => model.City)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.ZipCode)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ZipCode)
            @Html.ValidationMessageFor(model => model.ZipCode)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Phone)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Phone)
            @Html.ValidationMessageFor(model => model.Phone)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.SocialWorker)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.SocialWorker)
            @Html.ValidationMessageFor(model => model.SocialWorker)
        </div>
    </fieldset>
